package com.stefanie.study.afp;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author: stefanie-zy
 * @time: 2024/6/28-13:51
 * @description: 抽象工厂-具体工厂B
 */
@Slf4j
@Service
public class ConcreteFactoryB implements AbstractFactory {

    @Override
    public AbstractProductA createProductA() {
        log.info("具体工厂B创建...具体产品C");
        return new ConcreteProductC();
    }

    @Override
    public AbstractProductB createProductB() {
        log.info("具体工厂B创建...具体产品D");
        return new ConcreteProductD();
    }
}
